package partner;
/**
 * @author: wzq
 * @date: 14-6-18
 * description: change it at File | setting | File and code templates | include | file header
 */
public class FieldDecriptor {
    public final boolean isPrimaryKey;//是否主键
    public final String fieldName;// 名称
    public final String colName;// 数据库字段名
    public final String fieldClassName;//数据类型
    public final String colDataType;//数据库数据类型
    public final int colDatalength;//未加密时 数据库中长度,仅对 varchar等类型有效
    public final boolean crypt;//是否加密
    private Object fieldValue;//对应的未加密值
    private Object colValue;//对应的表中的值

    public FieldDecriptor(String fieldName,
                           String colName,
                           String fieldClassName,
                           String colDataType,
                           int colDatalength,
                           boolean isPrimaryKey,
                           boolean crypt) {
        this.fieldName = fieldName;
        this.colName = colName;
        this.fieldClassName = fieldClassName;
        this.colDataType = colDataType;
        this.colDatalength = colDatalength;
        this.isPrimaryKey = isPrimaryKey;
        this.crypt = crypt;
    }
    public Object getColValue() {
        return colValue;
    }
    public void setColValue(Object colValue) {
        this.colValue = colValue;
    }
    public Object getFieldValue() {
        return fieldValue;
    }
    public void setFieldValue(Object fieldValue) {
        this.fieldValue = fieldValue;
    }
}
